package com.rahms.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "分页查询请求参数")
public class PageQueryDTO {

    @Schema(description = "页码", example = "1", defaultValue = "1")
    private Integer page; // 页码
    
    @Schema(description = "每页大小", example = "10", defaultValue = "10")
    private Integer size; // 每页大小
    
    @Schema(description = "关键词", example = "张三")
    private String keyword; // 关键词（用户名、药品名等）
    
    @Schema(description = "用户角色过滤", example = "family", allowableValues = {"family", "admin", "elder"})
    private String role; // 用户角色过滤
    
    @Schema(description = "通用类型过滤", example = "blood_pressure")
    private String type; // 通用类型过滤（如数据类型、消息类型）
    
    @Schema(description = "已读状态", example = "0", allowableValues = {"0", "1"})
    private Integer isRead; // 已读状态
    
    @Schema(description = "状态字段", example = "1", allowableValues = {"0", "1"})
    private Integer status; // 状态字段

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}


